/**
 * Eclipse Public License 1.0
 */
package org.fireblade.easysmsbt;

import javax.bluetooth.DeviceClass;
import javax.bluetooth.DiscoveryListener;
import javax.bluetooth.RemoteDevice;
import javax.bluetooth.ServiceRecord;

/**
 * discovery listener - does nearly noething but logging
 */
public class BTDiscoveryListener implements DiscoveryListener {

  boolean completed = false;
  boolean success = false;


  /*
   * (non-Javadoc)
   * @see javax.bluetooth.DiscoveryListener#deviceDiscovered(javax.bluetooth.RemoteDevice,
   * javax.bluetooth.DeviceClass)
   */
  
  public void deviceDiscovered(RemoteDevice remotedevice, DeviceClass deviceclass) {
  }


  /*
   * (non-Javadoc)
   * @see javax.bluetooth.DiscoveryListener#inquiryCompleted(int)
   */
  
  public void inquiryCompleted(int i) {
  }


  /*
   * (non-Javadoc)
   * @see javax.bluetooth.DiscoveryListener#serviceSearchCompleted(int, int)
   */
  
  public void serviceSearchCompleted(int i, int j) {
    System.out.println("\r\n    Discover abgeschlossen.");
    System.out.print("    Status: ");
  }


  /*
   * (non-Javadoc)
   * @see javax.bluetooth.DiscoveryListener#servicesDiscovered(int, javax.bluetooth.ServiceRecord[])
   */
  
  public void servicesDiscovered(int i, ServiceRecord[] aservicerecord) {
    System.out.print("ok.");
  }
}
